// import com.alibaba.druid.sql.ast.SQLName;
// import com.alibaba.druid.sql.ast.statement.SQLAlterTableItem;
// import com.alibaba.druid.sql.dialect.mysql.ast.MySqlObjectImpl;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MysqlAlterTableAlterCheck.h"
#include "../../../../ast/SQLName.h"
#include "../../visitor/MySqlASTVisitor.h"

// @Override
void MysqlAlterTableAlterCheck::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MysqlAlterTableAlterCheck)))
  {
    if (getName() != nullptr)
    {
      getName()->accept(visitor);
    }
  }
  visitor->endVisit(SharedObject(MysqlAlterTableAlterCheck));
}

SQLName_ptr MysqlAlterTableAlterCheck::getName()
{
  return name;
}

void MysqlAlterTableAlterCheck::setName(SQLName_ptr name)
{
  this->name = name;
}

BOOL_ptr MysqlAlterTableAlterCheck::getEnforced()
{
  return enforced;
}

void MysqlAlterTableAlterCheck::setEnforced(BOOL_ptr enforced)
{
  this->enforced = enforced;
}
